import ee3
import clr
clr.AddReferenceByPartialName("PresentationCore")
clr.AddReferenceByPartialName("PresentationFramework")
clr.AddReferenceByPartialName("WindowsBase")
from System.Windows.Controls import *
from System import *

class skrgo(object):
    """description of class"""
    def __init__(self, port):
        ee3.obrazec.tabItem1.Header = "glava"
        tabItem4 = TabItem();
        tabItem4.Header = "potrdi"
        ee3.obrazec.tabControl1.Items.Add(tabItem4)

        LChild = StackPanel();
        LChild.Height = 167
        LChild.Width = 84
        LChild.HorizontalAlignment = System.Windows.HorizontalAlignment.Left
        LChild.VerticalAlignment = System.Windows.VerticalAlignment.Top
        DChild = StackPanel();
        DChild.Height = 167
        DChild.Margin = System.Windows.Thickness(90, 0, 0, 0);

        l_pn = Label()
        l_pn.Content = "P/N"
        tb_pn = System.Windows.Controls.TextBox()
        l_sn = Label()
        l_sn.Content = "S/N"
        tb_sn = System.Windows.Controls.TextBox()

        dgrid = System.Windows.Controls.Grid()
        LChild.Children.Add(l_pn)
        LChild.Children.Add(l_sn)
        DChild.Children.Add(tb_pn)
        DChild.Children.Add(tb_sn)

        dgrid.Children.Add(LChild)
        dgrid.Children.Add(DChild)

        tabItem4.Content = dgrid